import 'package:massagist/generated/json/base/json_field.dart';
import 'package:massagist/generated/json/setting_model_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class SettingModelEntity {
	late int code;
	late String msg;
	late SettingModelData data;

	SettingModelEntity();

	factory SettingModelEntity.fromJson(Map<String, dynamic> json) => $SettingModelEntityFromJson(json);

	Map<String, dynamic> toJson() => $SettingModelEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class SettingModelData {
	late String mtime;
	late String version;
	late String full;
	late String tab;
	late String rank;
	late SettingModelDataBox box;
	late String kefu;

	SettingModelData();

	factory SettingModelData.fromJson(Map<String, dynamic> json) => $SettingModelDataFromJson(json);

	Map<String, dynamic> toJson() => $SettingModelDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class SettingModelDataBox {
	late String url;
	late String width;
	late String height;

	SettingModelDataBox();

	factory SettingModelDataBox.fromJson(Map<String, dynamic> json) => $SettingModelDataBoxFromJson(json);

	Map<String, dynamic> toJson() => $SettingModelDataBoxToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}